#ifndef MIXEREDITONE_H
#define MIXEREDITONE_H

#include <QDialog>
#include <QSqlRelationalTableModel>
#include <QDataWidgetMapper>
#include <QSqlRelationalDelegate>

namespace Ui {
    class MixerEditOne;
}

class MixerEditOne : public QDialog
{
    Q_OBJECT

public:
    explicit MixerEditOne(QWidget *parent = 0, int sentenceID = 0);
    ~MixerEditOne();
    void writeDatatoDB();

private slots:
    void testGrouping();

private:
    void readDataFromDB();
    bool groupingPreview();
    Ui::MixerEditOne *ui;
    int sentenceID;
    QSqlRelationalTableModel model;
    QDataWidgetMapper mapper;
    QRegExpValidator *groupingValidator;
    QRegExpValidator *sentenceValidator;
};

#endif // MIXEREDITONE_H
